package com.zdsoft.finance.product.entity;

import javax.persistence.Column;
import javax.persistence.Entity;
import javax.persistence.JoinColumn;
import javax.persistence.Lob;
import javax.persistence.ManyToOne;
import javax.persistence.Table;

import com.zdsoft.framework.core.common.domain.BaseEntity;


/**
 * 部门功能
 * @author longwei
 * @date 2016/11/08
 * @version 1.0
 */
@Entity
@Table(name="zf_product_function")
public class ProductFunction extends BaseEntity{

	/**
	 * 是否适用所有部门
	 */
	@Column(columnDefinition="boolean")
	private Boolean isAll;
	
	/**
	 * 部门
	 */
	@Column(length=32)
	private String orgCd;
	
	/**
	 * 部门名称
	 */
	@Column(length=255)
	private String orgNm;
	
	/**
	 * 功能
	 */
	@Column(length=32)
	private String functionCd;
	
	/**
	 * 功能名称
	 */
	@Column(length=255)
	private String functionNm;
	
	/**
	 * 资源URLkey
	 */
	@Column(length=255)
	private String urlKey;
	
	/**
	 * 是否申请单
	 */
	@Column(columnDefinition="boolean")
	private Boolean isApplayForm;
	
	/**
	 * 流程名称
	 */
	@Column(length=255)
	private String processNm;
	
	/**
	 * 备注
	 */
	@Lob
	private String remark;
	
	/**
	 * 所属产品
	 */
	@ManyToOne
	@JoinColumn(name="product_id")
	private Product product;

	public Boolean getIsAll() {
		return isAll;
	}

	public void setIsAll(Boolean isAll) {
		this.isAll = isAll;
	}

	public String getOrgCd() {
		return orgCd;
	}

	public void setOrgCd(String orgCd) {
		this.orgCd = orgCd;
	}

	public String getFunctionCd() {
		return functionCd;
	}

	public void setFunctionCd(String functionCd) {
		this.functionCd = functionCd;
	}

	public String getUrlKey() {
		return urlKey;
	}

	public void setUrlKey(String urlKey) {
		this.urlKey = urlKey;
	}

	public Boolean getIsApplayForm() {
		return isApplayForm;
	}

	public void setIsApplayForm(Boolean isApplayForm) {
		this.isApplayForm = isApplayForm;
	}

	public String getProcessNm() {
		return processNm;
	}

	public void setProcessNm(String processNm) {
		this.processNm = processNm;
	}
 
	public String getOrgNm() {
		return orgNm;
	}

	public void setOrgNm(String orgNm) {
		this.orgNm = orgNm;
	}

	public String getFunctionNm() {
		return functionNm;
	}

	public void setFunctionNm(String functionNm) {
		this.functionNm = functionNm;
	}

	public String getRemark() {
		return remark;
	}

	public void setRemark(String remark) {
		this.remark = remark;
	}

	public Product getProduct() {
		return product;
	}

	public void setProduct(Product product) {
		this.product = product;
	}
	
}
